package com.ck.ips.controller;

import com.ck.core.annotation.LoginRequired;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
* @Description: 返回视图
* @Author: hf
* @Date:    2019/5/5 14:11
* @Version: 1.0
*/
@Controller
public class ModelAndViewController extends BaseController {
    private Logger logger = LoggerFactory.getLogger(ModelAndViewController.class);

    /**
     * 跳转登录页面
     */
    @RequestMapping(value = "/login.html")
    public String login() {
        return "login";
    }

    /**
     * 跳转首页
     */
    @LoginRequired
    @RequestMapping(value = "/index.html")
    public String index() {
        return "index";
    }

    /**
     * 跳转节目管理页面
     */
    @LoginRequired
    @RequestMapping(value = "/programmng.html")
    public String programmng() {
        return "programmng";
    }

    /**
     * 跳转终端管理页面
     */
    @LoginRequired
    @RequestMapping(value = "/device.html")
    public String device() {
        return "device";
    }

    /**
     * 跳转数据统计页面
     */
    @LoginRequired
    @RequestMapping(value = "/statics.html")
    public String statics() {
        return "statics";
    }

    /**
     * 跳转系统管理页面
     */
    @LoginRequired
    @RequestMapping(value = "/sysmng.html")
    public String sysmng() {
        return "sysmng";
    }

}
